<template>
  <NuxtLayout>
    <NuxtPage />
  </NuxtLayout>
  <NuxtRouteAnnouncer />
</template>

<script setup lang="ts">
import { theme } from 'ant-design-vue'

// 使用 app.config.ts 中的配置
const appConfig = useAppConfig()

const themeConfig = {
  algorithm: theme.defaultAlgorithm,
  token: {
    colorPrimary: appConfig.theme.primaryColor,
  },
}

// 获取当前路由
const route = useRoute()
const currentRoute = computed(() => route.path)
</script>
